package com.automannn.springPractice.applicationContext.bean.factory;

import com.automannn.springPractice.applicationContext.User;
import org.springframework.beans.factory.FactoryBean;

/**
 * 用户工厂bean
 *
 * @author huangk
 * @date 2022/08/03
 */
public class UserFactoryBean implements FactoryBean<User> {
    @Override
    public User getObject() throws Exception {
        return User.createUser();
    }

    @Override
    public Class<User> getObjectType() {
        return User.class;
    }

}
